import axios from "@/utils/request";

export function addExam(params){
    return axios({
        method:"post",
        url:"/exam",
        data:params
    })
}

export function deleteExam(params){
    return axios({
        method:"delete",
        url:"/exam",
        data:params
    })
}

export function updateExam(params){
    return axios({
        method:"put",
        url:"/exam",
        data:params
    })
}

export function selectExam(params){
    return axios({
        method:"get",
        url:"/exam",
        params: {
            pageNum:params.pageNum,
            pageSize:params.pageSize,
            search:params.search,
        }
    })
}

export function queryMyExam(params){
    return axios({
        method:"post",
        url:"/exam/queryMyExam",
        data:params
    })
}

export function queryExamByStudent(params){
    return axios({
        method:"post",
        url:"/exam/queryExamByStudent",
        data:params
    })
}